import  arcade

# 打开一个窗口
arcade.open_window(600, 600, "Drawing Example")

# 设置背景颜色
arcade.set_background_color((184, 227, 236))

# 开始画图
arcade.start_render()

# 绘制绿色背景
arcade.draw_lrtb_rectangle_filled(0, 599, 200, 0, (146, 252, 77))

# 绘制一棵树
arcade.draw_rectangle_filled(100, 50, 20, 60, arcade.csscolor.SIENNA)
arcade.draw_circle_filled(100, 80, 30, arcade.csscolor.DARK_GREEN)

# 再绘制一棵树
arcade.draw_rectangle_filled(200, 50, 20, 60, arcade.csscolor.SIENNA)
arcade.draw_ellipse_filled(200, 100, 60, 80, arcade.csscolor.DARK_GREEN)

# 画个房子
arcade.draw_rectangle_filled(400, 60, 90, 60, (96, 44, 93))
arcade.draw_triangle_filled(400, 140, 340, 90, 460, 90, (207, 142, 109))
arcade.draw_rectangle_filled(370, 60, 20, 30, arcade.csscolor.WHITE)
arcade.draw_rectangle_filled(430, 60, 20, 30, arcade.csscolor.WHITE)
arcade.draw_rectangle_filled(400, 40, 20, 20, arcade.csscolor.RED)

# 画两座山
arcade.draw_triangle_filled(150, 320, 0, 200, 300, 200, (98, 77, 46))
arcade.draw_triangle_filled(450, 320, 300, 200, 600, 200, (98, 77, 46))

# 画个下山的太阳
arcade.draw_arc_filled(300, 200, 65, 100, arcade.color.YELLOW, 30, 150)

# 画朵云
arcade.draw_ellipse_filled(100, 500, 80, 80, (151, 204, 246), 100)
arcade.draw_ellipse_filled(130, 490, 70, 70, (151, 204, 246), 100)
arcade.draw_ellipse_filled(120, 510, 70, 70, (151, 204, 246), 100)

# 再画一朵云
arcade.draw_ellipse_filled(450, 480, 70, 70, (151, 204, 246), 100)
arcade.draw_ellipse_filled(500, 470, 70, 70, (151, 204, 246), 100)
arcade.draw_ellipse_filled(495, 495, 70, 70, (151, 204, 246), 100)
arcade.draw_ellipse_filled(465, 500, 70, 70, (151, 204, 246), 100)

# 在(150, 230) 位置写字，字体大小18 pts.
arcade.draw_text("hyc画的",
                 150, 390,
                 arcade.color.BLACK, 18)

# 结束画图
arcade.finish_render()

# 保持窗口
arcade.run()